import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/element.js'
// 导入图标库
import './assets/font-awesome/css/font-awesome.min.css'

//引入axios
import axios from 'axios'
import * as echarts from 'echarts'  //引入Echarts，
Vue.prototype.$echarts = echarts  //定义为全局变量

// 配置请求的根路径
axios.defaults.baseURL = 'http://www.ccsu1204branch.com'
// axios.defaults.baseURL = 'http://localhost:8081'
// 182.61.13.132:22
// axios请求拦截器
// axios.interceptors.request.use(config => {
//   config.headers.Authorization = window.sessionStorage.getItem('token');
//   return config;
// })
Vue.prototype.$http = axios

//QS模块转化
import QS from 'qs'
Vue.prototype.$qs = QS

import moment from 'moment';
Vue.prototype.$moment = moment;

Vue.config.productionTip = false

new Vue({
  router,
  store,  //store:store 和router一样，将我们创建的Vuex实例挂载到这个vue实例中
  render: h => h(App)
}).$mount('#app')

